from sympy import Symbol
from sympy.integrals import integrate
if __name__ == '__main__':
    x = Symbol("x")
    expression = x ** 2

    result_expression = integrate(expression)
    print(result_expression)

    result = result_expression.subs(x, 1) - result_expression.subs(x, 0)
    print(result)


